# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=proxychains-ng
pkgver=4.16
pkgrel=1
pkgdesc="This tool provides proxy server support to any app."
url="https://github.com/rofl0r/proxychains-ng"
arch="all"
license="GPL-2.0"
options="!check"
source="https://github.com/rofl0r/proxychains-ng/archive/v$pkgver.zip"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/proxychains
	make
}

package() {
	make DESTDIR="$pkgdir" install install-config
	ln -s proxychains4 "$pkgdir"/usr/bin/proxychains
}

sha512sums="
f9c0ae33a8b678e5461ca39b19cf64fadd4f91c93d6328bb965ba58b2205613bb2614b0bb5c68d2d29d7071becb97a2faab729fa8b0a9ccf39218a9bbbca90c7  v4.16.zip
"
